<<<<<<< .mine
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>prngd: H:/prngd_server/inc/BBS.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">prngd
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_b_b_s_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">BBS.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">* Com_Interface.h</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">* Last edited: 27.08.2014</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">* Author: David Noack</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">*/</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#ifndef BBS_H_</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#define BBS_H_</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;fstream&gt;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;math.h&gt;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;unistd.h&gt;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &lt;gmp.h&gt;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &lt;gmpxx.h&gt;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="class_b_b_s.html">   25</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_b_b_s.html">BBS</a></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;{</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;        <a class="code" href="class_b_b_s.html#af74a83220f1c159b5e781d9272aac6af">BBS</a>();</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        <a class="code" href="class_b_b_s.html#a29a4e6f7e46aa8b41f777b4674a1b2f0">~BBS</a>();</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        <span class="keywordtype">char</span>* <a class="code" href="class_b_b_s.html#a698e05fd2f2968af4600fb160e7faeb7">generateBits</a>(mpz_t s, <span class="keywordtype">int</span> bitCount);</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keyword">private</span>:</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_b_b_s.html#a0659bff6844aaba740d202b8ca168ae1">create_M</a>(<span class="keywordtype">int</span> bitCount);</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_b_b_s.html#a0ed9e0716b956c8a6cf4bba451bf1d0a">printRndData</a>(<span class="keywordtype">char</span>* data, <span class="keywordtype">int</span> size, <span class="keywordtype">bool</span> binary);</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_b_b_s.html#adadf22f67593a49c880d4f0a22ef83dd">getBlumPrime</a>(mpz_t bigInt, <span class="keywordtype">int</span> bits);</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="class_b_b_s.html#afb322d716709aadc84757afb175e8b4d">   69</a></span>&#160;        mpz_t <a class="code" href="class_b_b_s.html#afb322d716709aadc84757afb175e8b4d">p</a>;</div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="class_b_b_s.html#a5f87feb08e663a273fcd0c4e2d9f9783">   71</a></span>&#160;        mpz_t <a class="code" href="class_b_b_s.html#a5f87feb08e663a273fcd0c4e2d9f9783">q</a>;</div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="class_b_b_s.html#ae25fb37464f6b72594ee0ff42b0efec9">   73</a></span>&#160;        mpz_t <a class="code" href="class_b_b_s.html#ae25fb37464f6b72594ee0ff42b0efec9">m</a>;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="class_b_b_s.html#aa60e8fbdacc92d5b4becfec3bce311cf">   76</a></span>&#160;        mpz_t <a class="code" href="class_b_b_s.html#aa60e8fbdacc92d5b4becfec3bce311cf">r</a>;</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="class_b_b_s.html#aa783fdd72784f429a1a6cf7fff220c56">   78</a></span>&#160;        mpz_t <a class="code" href="class_b_b_s.html#aa783fdd72784f429a1a6cf7fff220c56">output</a>;</div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="class_b_b_s.html#a95a4c72abceacc420fd2b46e34ad9cad">   80</a></span>&#160;        mpz_t <a class="code" href="class_b_b_s.html#a95a4c72abceacc420fd2b46e34ad9cad">output2</a>; </div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="class_b_b_s.html#a5922b1da44459a23aaed78f69fd6d1a1">   82</a></span>&#160;        <span class="keywordtype">char</span>* <a class="code" href="class_b_b_s.html#a5922b1da44459a23aaed78f69fd6d1a1">byteOutput</a>;</div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="class_b_b_s.html#a6276b1cee047bd66aa6a64517a3e2e31">   84</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_b_b_s.html#a6276b1cee047bd66aa6a64517a3e2e31">useRandom</a>; </div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;};</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div>
<div class="ttc" id="class_b_b_s_html_aa783fdd72784f429a1a6cf7fff220c56"><div class="ttname"><a href="class_b_b_s.html#aa783fdd72784f429a1a6cf7fff220c56">BBS::output</a></div><div class="ttdeci">mpz_t output</div><div class="ttdef"><b>Definition:</b> BBS.h:78</div></div>
<div class="ttc" id="class_b_b_s_html_a0ed9e0716b956c8a6cf4bba451bf1d0a"><div class="ttname"><a href="class_b_b_s.html#a0ed9e0716b956c8a6cf4bba451bf1d0a">BBS::printRndData</a></div><div class="ttdeci">void printRndData(char *data, int size, bool binary)</div><div class="ttdef"><b>Definition:</b> BBS.cpp:131</div></div>
<div class="ttc" id="class_b_b_s_html_afb322d716709aadc84757afb175e8b4d"><div class="ttname"><a href="class_b_b_s.html#afb322d716709aadc84757afb175e8b4d">BBS::p</a></div><div class="ttdeci">mpz_t p</div><div class="ttdef"><b>Definition:</b> BBS.h:69</div></div>
<div class="ttc" id="class_b_b_s_html_a29a4e6f7e46aa8b41f777b4674a1b2f0"><div class="ttname"><a href="class_b_b_s.html#a29a4e6f7e46aa8b41f777b4674a1b2f0">BBS::~BBS</a></div><div class="ttdeci">~BBS()</div><div class="ttdef"><b>Definition:</b> BBS.cpp:19</div></div>
<div class="ttc" id="class_b_b_s_html_a698e05fd2f2968af4600fb160e7faeb7"><div class="ttname"><a href="class_b_b_s.html#a698e05fd2f2968af4600fb160e7faeb7">BBS::generateBits</a></div><div class="ttdeci">char * generateBits(mpz_t s, int bitCount)</div><div class="ttdef"><b>Definition:</b> BBS.cpp:30</div></div>
<div class="ttc" id="class_b_b_s_html_a6276b1cee047bd66aa6a64517a3e2e31"><div class="ttname"><a href="class_b_b_s.html#a6276b1cee047bd66aa6a64517a3e2e31">BBS::useRandom</a></div><div class="ttdeci">bool useRandom</div><div class="ttdef"><b>Definition:</b> BBS.h:84</div></div>
<div class="ttc" id="class_b_b_s_html_aa60e8fbdacc92d5b4becfec3bce311cf"><div class="ttname"><a href="class_b_b_s.html#aa60e8fbdacc92d5b4becfec3bce311cf">BBS::r</a></div><div class="ttdeci">mpz_t r</div><div class="ttdef"><b>Definition:</b> BBS.h:76</div></div>
<div class="ttc" id="class_b_b_s_html_a0659bff6844aaba740d202b8ca168ae1"><div class="ttname"><a href="class_b_b_s.html#a0659bff6844aaba740d202b8ca168ae1">BBS::create_M</a></div><div class="ttdeci">void create_M(int bitCount)</div><div class="ttdef"><b>Definition:</b> BBS.cpp:115</div></div>
<div class="ttc" id="class_b_b_s_html_ae25fb37464f6b72594ee0ff42b0efec9"><div class="ttname"><a href="class_b_b_s.html#ae25fb37464f6b72594ee0ff42b0efec9">BBS::m</a></div><div class="ttdeci">mpz_t m</div><div class="ttdef"><b>Definition:</b> BBS.h:73</div></div>
<div class="ttc" id="class_b_b_s_html_a5922b1da44459a23aaed78f69fd6d1a1"><div class="ttname"><a href="class_b_b_s.html#a5922b1da44459a23aaed78f69fd6d1a1">BBS::byteOutput</a></div><div class="ttdeci">char * byteOutput</div><div class="ttdef"><b>Definition:</b> BBS.h:82</div></div>
<div class="ttc" id="class_b_b_s_html_a5f87feb08e663a273fcd0c4e2d9f9783"><div class="ttname"><a href="class_b_b_s.html#a5f87feb08e663a273fcd0c4e2d9f9783">BBS::q</a></div><div class="ttdeci">mpz_t q</div><div class="ttdef"><b>Definition:</b> BBS.h:71</div></div>
<div class="ttc" id="class_b_b_s_html_af74a83220f1c159b5e781d9272aac6af"><div class="ttname"><a href="class_b_b_s.html#af74a83220f1c159b5e781d9272aac6af">BBS::BBS</a></div><div class="ttdeci">BBS()</div><div class="ttdef"><b>Definition:</b> BBS.cpp:6</div></div>
<div class="ttc" id="class_b_b_s_html_a95a4c72abceacc420fd2b46e34ad9cad"><div class="ttname"><a href="class_b_b_s.html#a95a4c72abceacc420fd2b46e34ad9cad">BBS::output2</a></div><div class="ttdeci">mpz_t output2</div><div class="ttdef"><b>Definition:</b> BBS.h:80</div></div>
<div class="ttc" id="class_b_b_s_html"><div class="ttname"><a href="class_b_b_s.html">BBS</a></div><div class="ttdoc">Blum Blum Shub pseudo random number generator. </div><div class="ttdef"><b>Definition:</b> BBS.h:25</div></div>
<div class="ttc" id="class_b_b_s_html_adadf22f67593a49c880d4f0a22ef83dd"><div class="ttname"><a href="class_b_b_s.html#adadf22f67593a49c880d4f0a22ef83dd">BBS::getBlumPrime</a></div><div class="ttdeci">void getBlumPrime(mpz_t bigInt, int bits)</div><div class="ttdef"><b>Definition:</b> BBS.cpp:86</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_84e7a5db4faa3bb3efa0834f14a17625.html">H:</a></li><li class="navelem"><a class="el" href="dir_47daf5b682bb20d31b5e64df701b3e23.html">prngd_server</a></li><li class="navelem"><a class="el" href="dir_83a04de6cb89da3aeafaea27fac18852.html">inc</a></li><li class="navelem"><b>BBS.h</b></li>
    <li class="footer">Generated on Fri Aug 29 2014 14:14:52 for prngd by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.8 </li>
  </ul>
</div>
</body>
</html>
=======
<<<<<<< .mine
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>prngd: H:/prngd_server/inc/BBS.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">prngd
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_b_b_s_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">BBS.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">* Com_Interface.h</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">* Last edited: 27.08.2014</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">* Author: David Noack</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">*/</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#ifndef BBS_H_</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#define BBS_H_</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;fstream&gt;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;math.h&gt;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;unistd.h&gt;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &lt;gmp.h&gt;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &lt;gmpxx.h&gt;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="class_b_b_s.html">   25</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_b_b_s.html">BBS</a></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;{</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;        <a class="code" href="class_b_b_s.html#af74a83220f1c159b5e781d9272aac6af">BBS</a>();</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        <a class="code" href="class_b_b_s.html#a29a4e6f7e46aa8b41f777b4674a1b2f0">~BBS</a>();</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        <span class="keywordtype">char</span>* <a class="code" href="class_b_b_s.html#a698e05fd2f2968af4600fb160e7faeb7">generateBits</a>(mpz_t s, <span class="keywordtype">int</span> bitCount);</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keyword">private</span>:</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_b_b_s.html#a0659bff6844aaba740d202b8ca168ae1">create_M</a>(<span class="keywordtype">int</span> bitCount);</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_b_b_s.html#a0ed9e0716b956c8a6cf4bba451bf1d0a">printRndData</a>(<span class="keywordtype">char</span>* data, <span class="keywordtype">int</span> size, <span class="keywordtype">bool</span> binary);</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_b_b_s.html#adadf22f67593a49c880d4f0a22ef83dd">getBlumPrime</a>(mpz_t bigInt, <span class="keywordtype">int</span> bits);</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="class_b_b_s.html#afb322d716709aadc84757afb175e8b4d">   69</a></span>&#160;        mpz_t <a class="code" href="class_b_b_s.html#afb322d716709aadc84757afb175e8b4d">p</a>;</div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="class_b_b_s.html#a5f87feb08e663a273fcd0c4e2d9f9783">   71</a></span>&#160;        mpz_t <a class="code" href="class_b_b_s.html#a5f87feb08e663a273fcd0c4e2d9f9783">q</a>;</div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="class_b_b_s.html#ae25fb37464f6b72594ee0ff42b0efec9">   73</a></span>&#160;        mpz_t <a class="code" href="class_b_b_s.html#ae25fb37464f6b72594ee0ff42b0efec9">m</a>;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="class_b_b_s.html#aa60e8fbdacc92d5b4becfec3bce311cf">   76</a></span>&#160;        mpz_t <a class="code" href="class_b_b_s.html#aa60e8fbdacc92d5b4becfec3bce311cf">r</a>;</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="class_b_b_s.html#aa783fdd72784f429a1a6cf7fff220c56">   78</a></span>&#160;        mpz_t <a class="code" href="class_b_b_s.html#aa783fdd72784f429a1a6cf7fff220c56">output</a>;</div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="class_b_b_s.html#a95a4c72abceacc420fd2b46e34ad9cad">   80</a></span>&#160;        mpz_t <a class="code" href="class_b_b_s.html#a95a4c72abceacc420fd2b46e34ad9cad">output2</a>; </div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="class_b_b_s.html#a5922b1da44459a23aaed78f69fd6d1a1">   82</a></span>&#160;        <span class="keywordtype">char</span>* <a class="code" href="class_b_b_s.html#a5922b1da44459a23aaed78f69fd6d1a1">byteOutput</a>;</div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="class_b_b_s.html#a6276b1cee047bd66aa6a64517a3e2e31">   84</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_b_b_s.html#a6276b1cee047bd66aa6a64517a3e2e31">useRandom</a>; </div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;};</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div>
<div class="ttc" id="class_b_b_s_html_aa783fdd72784f429a1a6cf7fff220c56"><div class="ttname"><a href="class_b_b_s.html#aa783fdd72784f429a1a6cf7fff220c56">BBS::output</a></div><div class="ttdeci">mpz_t output</div><div class="ttdef"><b>Definition:</b> BBS.h:78</div></div>
<div class="ttc" id="class_b_b_s_html_a0ed9e0716b956c8a6cf4bba451bf1d0a"><div class="ttname"><a href="class_b_b_s.html#a0ed9e0716b956c8a6cf4bba451bf1d0a">BBS::printRndData</a></div><div class="ttdeci">void printRndData(char *data, int size, bool binary)</div><div class="ttdef"><b>Definition:</b> BBS.cpp:131</div></div>
<div class="ttc" id="class_b_b_s_html_afb322d716709aadc84757afb175e8b4d"><div class="ttname"><a href="class_b_b_s.html#afb322d716709aadc84757afb175e8b4d">BBS::p</a></div><div class="ttdeci">mpz_t p</div><div class="ttdef"><b>Definition:</b> BBS.h:69</div></div>
<div class="ttc" id="class_b_b_s_html_a29a4e6f7e46aa8b41f777b4674a1b2f0"><div class="ttname"><a href="class_b_b_s.html#a29a4e6f7e46aa8b41f777b4674a1b2f0">BBS::~BBS</a></div><div class="ttdeci">~BBS()</div><div class="ttdef"><b>Definition:</b> BBS.cpp:19</div></div>
<div class="ttc" id="class_b_b_s_html_a698e05fd2f2968af4600fb160e7faeb7"><div class="ttname"><a href="class_b_b_s.html#a698e05fd2f2968af4600fb160e7faeb7">BBS::generateBits</a></div><div class="ttdeci">char * generateBits(mpz_t s, int bitCount)</div><div class="ttdef"><b>Definition:</b> BBS.cpp:30</div></div>
<div class="ttc" id="class_b_b_s_html_a6276b1cee047bd66aa6a64517a3e2e31"><div class="ttname"><a href="class_b_b_s.html#a6276b1cee047bd66aa6a64517a3e2e31">BBS::useRandom</a></div><div class="ttdeci">bool useRandom</div><div class="ttdef"><b>Definition:</b> BBS.h:84</div></div>
<div class="ttc" id="class_b_b_s_html_aa60e8fbdacc92d5b4becfec3bce311cf"><div class="ttname"><a href="class_b_b_s.html#aa60e8fbdacc92d5b4becfec3bce311cf">BBS::r</a></div><div class="ttdeci">mpz_t r</div><div class="ttdef"><b>Definition:</b> BBS.h:76</div></div>
<div class="ttc" id="class_b_b_s_html_a0659bff6844aaba740d202b8ca168ae1"><div class="ttname"><a href="class_b_b_s.html#a0659bff6844aaba740d202b8ca168ae1">BBS::create_M</a></div><div class="ttdeci">void create_M(int bitCount)</div><div class="ttdef"><b>Definition:</b> BBS.cpp:115</div></div>
<div class="ttc" id="class_b_b_s_html_ae25fb37464f6b72594ee0ff42b0efec9"><div class="ttname"><a href="class_b_b_s.html#ae25fb37464f6b72594ee0ff42b0efec9">BBS::m</a></div><div class="ttdeci">mpz_t m</div><div class="ttdef"><b>Definition:</b> BBS.h:73</div></div>
<div class="ttc" id="class_b_b_s_html_a5922b1da44459a23aaed78f69fd6d1a1"><div class="ttname"><a href="class_b_b_s.html#a5922b1da44459a23aaed78f69fd6d1a1">BBS::byteOutput</a></div><div class="ttdeci">char * byteOutput</div><div class="ttdef"><b>Definition:</b> BBS.h:82</div></div>
<div class="ttc" id="class_b_b_s_html_a5f87feb08e663a273fcd0c4e2d9f9783"><div class="ttname"><a href="class_b_b_s.html#a5f87feb08e663a273fcd0c4e2d9f9783">BBS::q</a></div><div class="ttdeci">mpz_t q</div><div class="ttdef"><b>Definition:</b> BBS.h:71</div></div>
<div class="ttc" id="class_b_b_s_html_af74a83220f1c159b5e781d9272aac6af"><div class="ttname"><a href="class_b_b_s.html#af74a83220f1c159b5e781d9272aac6af">BBS::BBS</a></div><div class="ttdeci">BBS()</div><div class="ttdef"><b>Definition:</b> BBS.cpp:6</div></div>
<div class="ttc" id="class_b_b_s_html_a95a4c72abceacc420fd2b46e34ad9cad"><div class="ttname"><a href="class_b_b_s.html#a95a4c72abceacc420fd2b46e34ad9cad">BBS::output2</a></div><div class="ttdeci">mpz_t output2</div><div class="ttdef"><b>Definition:</b> BBS.h:80</div></div>
<div class="ttc" id="class_b_b_s_html"><div class="ttname"><a href="class_b_b_s.html">BBS</a></div><div class="ttdoc">Blum Blum Shub pseudo random number generator. </div><div class="ttdef"><b>Definition:</b> BBS.h:25</div></div>
<div class="ttc" id="class_b_b_s_html_adadf22f67593a49c880d4f0a22ef83dd"><div class="ttname"><a href="class_b_b_s.html#adadf22f67593a49c880d4f0a22ef83dd">BBS::getBlumPrime</a></div><div class="ttdeci">void getBlumPrime(mpz_t bigInt, int bits)</div><div class="ttdef"><b>Definition:</b> BBS.cpp:86</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_84e7a5db4faa3bb3efa0834f14a17625.html">H:</a></li><li class="navelem"><a class="el" href="dir_47daf5b682bb20d31b5e64df701b3e23.html">prngd_server</a></li><li class="navelem"><a class="el" href="dir_83a04de6cb89da3aeafaea27fac18852.html">inc</a></li><li class="navelem"><b>BBS.h</b></li>
    <li class="footer">Generated on Fri Aug 29 2014 14:14:52 for prngd by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.8 </li>
  </ul>
</div>
</body>
</html>
=======
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>prngd: H:/prngd_server/inc/BBS.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">prngd
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_b_b_s_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">BBS.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">* Com_Interface.h</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">* Last edited: 27.08.2014</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">* Author: David Noack</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">*/</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#ifndef BBS_H_</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#define BBS_H_</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;fstream&gt;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;math.h&gt;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;unistd.h&gt;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &lt;gmp.h&gt;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &lt;gmpxx.h&gt;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="class_b_b_s.html">   25</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_b_b_s.html">BBS</a></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;{</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;        <a class="code" href="class_b_b_s.html#af74a83220f1c159b5e781d9272aac6af">BBS</a>();</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        <a class="code" href="class_b_b_s.html#a29a4e6f7e46aa8b41f777b4674a1b2f0">~BBS</a>();</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        <span class="keywordtype">char</span>* <a class="code" href="class_b_b_s.html#a698e05fd2f2968af4600fb160e7faeb7">generateBits</a>(mpz_t s, <span class="keywordtype">int</span> bitCount);</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keyword">private</span>:</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_b_b_s.html#a0659bff6844aaba740d202b8ca168ae1">create_M</a>(<span class="keywordtype">int</span> bitCount);</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_b_b_s.html#a0ed9e0716b956c8a6cf4bba451bf1d0a">printRndData</a>(<span class="keywordtype">char</span>* data, <span class="keywordtype">int</span> size, <span class="keywordtype">bool</span> binary);</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_b_b_s.html#adadf22f67593a49c880d4f0a22ef83dd">getBlumPrime</a>(mpz_t bigInt, <span class="keywordtype">int</span> bits);</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="class_b_b_s.html#afb322d716709aadc84757afb175e8b4d">   69</a></span>&#160;        mpz_t <a class="code" href="class_b_b_s.html#afb322d716709aadc84757afb175e8b4d">p</a>;</div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="class_b_b_s.html#a5f87feb08e663a273fcd0c4e2d9f9783">   71</a></span>&#160;        mpz_t <a class="code" href="class_b_b_s.html#a5f87feb08e663a273fcd0c4e2d9f9783">q</a>;</div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="class_b_b_s.html#ae25fb37464f6b72594ee0ff42b0efec9">   73</a></span>&#160;        mpz_t <a class="code" href="class_b_b_s.html#ae25fb37464f6b72594ee0ff42b0efec9">m</a>;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="class_b_b_s.html#aa60e8fbdacc92d5b4becfec3bce311cf">   76</a></span>&#160;        mpz_t <a class="code" href="class_b_b_s.html#aa60e8fbdacc92d5b4becfec3bce311cf">r</a>;</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="class_b_b_s.html#aa783fdd72784f429a1a6cf7fff220c56">   78</a></span>&#160;        mpz_t <a class="code" href="class_b_b_s.html#aa783fdd72784f429a1a6cf7fff220c56">output</a>;</div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="class_b_b_s.html#a95a4c72abceacc420fd2b46e34ad9cad">   80</a></span>&#160;        mpz_t <a class="code" href="class_b_b_s.html#a95a4c72abceacc420fd2b46e34ad9cad">output2</a>; </div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="class_b_b_s.html#a5922b1da44459a23aaed78f69fd6d1a1">   82</a></span>&#160;        <span class="keywordtype">char</span>* <a class="code" href="class_b_b_s.html#a5922b1da44459a23aaed78f69fd6d1a1">byteOutput</a>;</div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="class_b_b_s.html#a6276b1cee047bd66aa6a64517a3e2e31">   84</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_b_b_s.html#a6276b1cee047bd66aa6a64517a3e2e31">useRandom</a>; </div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;};</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div>
<div class="ttc" id="class_b_b_s_html_aa783fdd72784f429a1a6cf7fff220c56"><div class="ttname"><a href="class_b_b_s.html#aa783fdd72784f429a1a6cf7fff220c56">BBS::output</a></div><div class="ttdeci">mpz_t output</div><div class="ttdef"><b>Definition:</b> BBS.h:78</div></div>
<div class="ttc" id="class_b_b_s_html_a0ed9e0716b956c8a6cf4bba451bf1d0a"><div class="ttname"><a href="class_b_b_s.html#a0ed9e0716b956c8a6cf4bba451bf1d0a">BBS::printRndData</a></div><div class="ttdeci">void printRndData(char *data, int size, bool binary)</div><div class="ttdef"><b>Definition:</b> BBS.cpp:131</div></div>
<div class="ttc" id="class_b_b_s_html_afb322d716709aadc84757afb175e8b4d"><div class="ttname"><a href="class_b_b_s.html#afb322d716709aadc84757afb175e8b4d">BBS::p</a></div><div class="ttdeci">mpz_t p</div><div class="ttdef"><b>Definition:</b> BBS.h:69</div></div>
<div class="ttc" id="class_b_b_s_html_a29a4e6f7e46aa8b41f777b4674a1b2f0"><div class="ttname"><a href="class_b_b_s.html#a29a4e6f7e46aa8b41f777b4674a1b2f0">BBS::~BBS</a></div><div class="ttdeci">~BBS()</div><div class="ttdef"><b>Definition:</b> BBS.cpp:19</div></div>
<div class="ttc" id="class_b_b_s_html_a698e05fd2f2968af4600fb160e7faeb7"><div class="ttname"><a href="class_b_b_s.html#a698e05fd2f2968af4600fb160e7faeb7">BBS::generateBits</a></div><div class="ttdeci">char * generateBits(mpz_t s, int bitCount)</div><div class="ttdef"><b>Definition:</b> BBS.cpp:30</div></div>
<div class="ttc" id="class_b_b_s_html_a6276b1cee047bd66aa6a64517a3e2e31"><div class="ttname"><a href="class_b_b_s.html#a6276b1cee047bd66aa6a64517a3e2e31">BBS::useRandom</a></div><div class="ttdeci">bool useRandom</div><div class="ttdef"><b>Definition:</b> BBS.h:84</div></div>
<div class="ttc" id="class_b_b_s_html_aa60e8fbdacc92d5b4becfec3bce311cf"><div class="ttname"><a href="class_b_b_s.html#aa60e8fbdacc92d5b4becfec3bce311cf">BBS::r</a></div><div class="ttdeci">mpz_t r</div><div class="ttdef"><b>Definition:</b> BBS.h:76</div></div>
<div class="ttc" id="class_b_b_s_html_a0659bff6844aaba740d202b8ca168ae1"><div class="ttname"><a href="class_b_b_s.html#a0659bff6844aaba740d202b8ca168ae1">BBS::create_M</a></div><div class="ttdeci">void create_M(int bitCount)</div><div class="ttdef"><b>Definition:</b> BBS.cpp:115</div></div>
<div class="ttc" id="class_b_b_s_html_ae25fb37464f6b72594ee0ff42b0efec9"><div class="ttname"><a href="class_b_b_s.html#ae25fb37464f6b72594ee0ff42b0efec9">BBS::m</a></div><div class="ttdeci">mpz_t m</div><div class="ttdef"><b>Definition:</b> BBS.h:73</div></div>
<div class="ttc" id="class_b_b_s_html_a5922b1da44459a23aaed78f69fd6d1a1"><div class="ttname"><a href="class_b_b_s.html#a5922b1da44459a23aaed78f69fd6d1a1">BBS::byteOutput</a></div><div class="ttdeci">char * byteOutput</div><div class="ttdef"><b>Definition:</b> BBS.h:82</div></div>
<div class="ttc" id="class_b_b_s_html_a5f87feb08e663a273fcd0c4e2d9f9783"><div class="ttname"><a href="class_b_b_s.html#a5f87feb08e663a273fcd0c4e2d9f9783">BBS::q</a></div><div class="ttdeci">mpz_t q</div><div class="ttdef"><b>Definition:</b> BBS.h:71</div></div>
<div class="ttc" id="class_b_b_s_html_af74a83220f1c159b5e781d9272aac6af"><div class="ttname"><a href="class_b_b_s.html#af74a83220f1c159b5e781d9272aac6af">BBS::BBS</a></div><div class="ttdeci">BBS()</div><div class="ttdef"><b>Definition:</b> BBS.cpp:6</div></div>
<div class="ttc" id="class_b_b_s_html_a95a4c72abceacc420fd2b46e34ad9cad"><div class="ttname"><a href="class_b_b_s.html#a95a4c72abceacc420fd2b46e34ad9cad">BBS::output2</a></div><div class="ttdeci">mpz_t output2</div><div class="ttdef"><b>Definition:</b> BBS.h:80</div></div>
<div class="ttc" id="class_b_b_s_html"><div class="ttname"><a href="class_b_b_s.html">BBS</a></div><div class="ttdoc">Blum Blum Shub pseudo random number generator. </div><div class="ttdef"><b>Definition:</b> BBS.h:25</div></div>
<div class="ttc" id="class_b_b_s_html_adadf22f67593a49c880d4f0a22ef83dd"><div class="ttname"><a href="class_b_b_s.html#adadf22f67593a49c880d4f0a22ef83dd">BBS::getBlumPrime</a></div><div class="ttdeci">void getBlumPrime(mpz_t bigInt, int bits)</div><div class="ttdef"><b>Definition:</b> BBS.cpp:86</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_84e7a5db4faa3bb3efa0834f14a17625.html">H:</a></li><li class="navelem"><a class="el" href="dir_47daf5b682bb20d31b5e64df701b3e23.html">prngd_server</a></li><li class="navelem"><a class="el" href="dir_83a04de6cb89da3aeafaea27fac18852.html">inc</a></li><li class="navelem"><b>BBS.h</b></li>
    <li class="footer">Generated on Sun Aug 31 2014 18:01:31 for prngd by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.8 </li>
  </ul>
</div>
</body>
</html>
>>>>>>> .r39
>>>>>>> .r46
